<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>QJson: qobjecthelper.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QJson
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">qobjecthelper.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* This file is part of qjson</span>
<a name="l00002"></a>00002 <span class="comment">  *</span>
<a name="l00003"></a>00003 <span class="comment">  * Copyright (C) 2009 Flavio Castelli &lt;flavio@castelli.name&gt;</span>
<a name="l00004"></a>00004 <span class="comment">  *</span>
<a name="l00005"></a>00005 <span class="comment">  * This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment">  * modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment">  * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">  * version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">  *</span>
<a name="l00010"></a>00010 <span class="comment">  * This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">  * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">  * Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment">  *</span>
<a name="l00015"></a>00015 <span class="comment">  * You should have received a copy of the GNU Library General Public License</span>
<a name="l00016"></a>00016 <span class="comment">  * along with this library; see the file COPYING.LIB.  If not, write to</span>
<a name="l00017"></a>00017 <span class="comment">  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,</span>
<a name="l00018"></a>00018 <span class="comment">  * Boston, MA 02110-1301, USA.</span>
<a name="l00019"></a>00019 <span class="comment">  */</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef QOBJECTHELPER_H</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define QOBJECTHELPER_H</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;QtCore/QLatin1String&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;QtCore/QStringList&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;QtCore/QVariantMap&gt;</span>
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">class </span>QObject;
<a name="l00029"></a>00029 
<a name="l00112"></a><a class="code" href="class_q_object_helper.html">00112</a> <span class="keyword">class </span><a class="code" href="class_q_object_helper.html" title="Class used to convert QObject into QVariant and vivce-versa. During these operations only the class a...">QObjectHelper</a> {
<a name="l00113"></a>00113     <span class="keyword">public</span>:
<a name="l00114"></a>00114       <a class="code" href="class_q_object_helper.html" title="Class used to convert QObject into QVariant and vivce-versa. During these operations only the class a...">QObjectHelper</a>();
<a name="l00115"></a>00115       ~<a class="code" href="class_q_object_helper.html" title="Class used to convert QObject into QVariant and vivce-versa. During these operations only the class a...">QObjectHelper</a>();
<a name="l00116"></a>00116       
<a name="l00123"></a>00123     <span class="keyword">static</span> QVariantMap <a class="code" href="class_q_object_helper.html#ac5fd74ad328752d47e62e1ac4a50df58">qobject2qvariant</a>( <span class="keyword">const</span> QObject* <span class="keywordtype">object</span>,
<a name="l00124"></a>00124                                   <span class="keyword">const</span> QStringList&amp; ignoredProperties = QStringList(QString(QLatin1String(<span class="stringliteral">&quot;objectName&quot;</span>))));
<a name="l00125"></a>00125 
<a name="l00131"></a>00131     <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_q_object_helper.html#a69dd8a0be3fbc682f0f418882ec1337b">qvariant2qobject</a>(<span class="keyword">const</span> QVariantMap&amp; variant, QObject* <span class="keywordtype">object</span>);
<a name="l00132"></a>00132 
<a name="l00133"></a>00133     <span class="keyword">private</span>:
<a name="l00134"></a>00134       Q_DISABLE_COPY(<a class="code" href="class_q_object_helper.html" title="Class used to convert QObject into QVariant and vivce-versa. During these operations only the class a...">QObjectHelper</a>)
<a name="l00135"></a>00135       <span class="keyword">class </span><a class="code" href="class_q_object_helper_1_1_q_object_helper_private.html">QObjectHelperPrivate</a>;
<a name="l00136"></a>00136       <a class="code" href="class_q_object_helper_1_1_q_object_helper_private.html">QObjectHelperPrivate</a>* <span class="keyword">const</span> d;
<a name="l00137"></a>00137 };
<a name="l00138"></a>00138 
<a name="l00139"></a>00139 
<a name="l00140"></a>00140 <span class="preprocessor">#endif // QOBJECTHELPER_H</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 9 2012 23:57:46 for QJson by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
